package com.taobao.api.response;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: taobao.gearfactory.intercept.order.callback response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class GearfactoryInterceptOrderCallbackResponse extends TaobaoResponse {

	private static final long serialVersionUID = 1759535232147334968L;

	/** 
	 * 截单结果
	 */
	@ApiField("result")
	private ApiResult result;


	public void setResult(ApiResult result) {
		this.result = result;
	}
	public ApiResult getResult( ) {
		return this.result;
	}
	
	/**
 * 截单结果
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class ApiResult extends TaobaoObject {

	private static final long serialVersionUID = 8573989214548194418L;

	/**
		 * 错误码："4001":"参数无效", "4002":"截单信息不存在", "4003":"erp截单超时", "4004":"服务不可用", "4005":"需要商家授权"
		 */
		@ApiField("error_code")
		private String errorCode;
		/**
		 * 错误信息，同错误码部分
		 */
		@ApiField("error_msg")
		private String errorMsg;
		/**
		 * 成功标识，true：成功，false：失败
		 */
		@ApiField("success")
		private Boolean success;
	

	public String getErrorCode() {
			return this.errorCode;
		}
		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}
		public String getErrorMsg() {
			return this.errorMsg;
		}
		public void setErrorMsg(String errorMsg) {
			this.errorMsg = errorMsg;
		}
		public Boolean getSuccess() {
			return this.success;
		}
		public void setSuccess(Boolean success) {
			this.success = success;
		}

}



}
